import "package:flutter/material.dart";
import "package:english_words/english_words.dart";

class NewRoute extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    final wordPair = new WordPair.random();
    return Scaffold(
      backgroundColor: Colors.red,
      appBar:AppBar(
        title: Text( "页面2"),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          textBaseline: TextBaseline.ideographic,
          children: <Widget>[
            Container(
            child: Text("这是第二个页面"),
            ),
            Container(
            child: Text(wordPair.toString()),
            ),
          ],
        )
      ),
    );
  }  
}